console.log("A")
$(".tag-1").mouseenter(function(){
    $(this).css("background-color"," #999");
    return false;
  });
  $(".tag-1").mouseleave(function(){
    $(this).css("background-color"," #fff");
  });
/*  $(".comment-zang").click(function(){
    $(this).next().text('+1')
    $(this).next().css("color",'red')
    $(this).css("color",'red')
    // alert($(this).next().text())
    return false;
  })*/
$(".comment-dian").click(function(){
  $(this).next().text('+1')
  $(this).next().css("color",'red')
  $(this).css("color",'red')
  // alert($(this).next().text())
  return false;
})
  $(".comment-zang").click(function(){
    /*$(this).html('+1')
    $(this).css("color",'red')
    return false;*/
    $(this).next().text('+1')
    $(this).next().css("color",'red')
    $(this).css("color",'red')
    var id = $(this).next().next().val()
    console.log("id:")
    console.log(id)
    var token = localStorage.getItem("token");
    // var ele = event.target;
    // console.log("ele111111:" + ele);
    // $(this).text('+1')
    console.log("token:")
    console.log(token)

    $.ajax({
      type:"post",
      url:"http://localhost:8081/demo/likes/postlikes",
      data:{
        "token": token,
        "evaluationId":id
      },
      success:function (result) {
        console.log("sucess")
        console.log(result)
        // console.log(ele)
      },
      error:function () {
        $(this).html('未登录')
        $(this).css("color",'red')
      }
    })
    return false

  })
  // $(".comment-zang").


